using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Messenger.DataAccess.Attributes;
using System.Runtime.Serialization;

namespace Messenger.DataModel
{
	[DataContract]
	public class Users
	{
		[PrimaryKey]
		[MandatoryValidation]
		[DataMember]
		public string UserName { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string Password { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string FirstName { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string LastName { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string Email { get; set; }
		[DataMember]
		public string Avatar { get; set; }
		[DataMember]
		public string Status { get; set; }
		[DataMember]
		public int? Timestamp { get; set; }
		[MandatoryValidation]
		[DataMember]
		public bool IsOnline { get; set; }
		[MandatoryValidation]
		[DataMember]
		public int SexID { get; set; }
		[MandatoryValidation]
		[DataMember]
		public DateTime Birthday { get; set; }
		[DataMember]
		public DateTime? LastLoginDate { get; set; }
        [DataMember]
        public string MessengerKey { get; set; }
		[DataMember]
		public DateTime CreatedDate { get; set; }
	}
}
